{% extends  'partials/base.html' %}
{%  block title %}员工信息 {% endblock%}
{% load crispy_forms_tags %}
{% block content %}
{% include 'partials/topside.html' %}
<div class="row my-4">

    <div class="col-md-8">
        <table class="table bg-white">
            <thead class="bg-info text-white">
            <tr>
                <th scope="col">操作</th>
                <th scope="col">员工名</th>
                <th scope="col">电话</th>
                <th scope="col">地址</th>
                <th scope="col">邮箱</th>
            </tr>
            </thead>
            <tbody>
            {% for worker in workers %}
            <tr>
                <th scope="row" width="20%">
                    <a class="btn btn-info btn-sm" href="{% url 'dashboard-staff-detail' worker.id %}">查看</a></th>
                <td>{{worker.username}}</td>
                <td>{{worker.profile.address}}</td>
                <td>{{worker.profile.phone}}</td>
                <td>{{worker.email}}</td>
            </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
</div>
{% endblock %}